##---------------------------------------------------
## 2019 Mercedes-AMG GT4
## Replacement for Mercedes SLR
## Attributes.bin patch script
##---------------------------------------------------

memfile GLOBAL\GlobalMemoryFile.bin
vpak GLOBAL\ATTRIBUTES.BIN db


##---------------------------------------------------
## Node: pvehicle/default/cars/racers/slr
##---------------------------------------------------

## VerbalType; copspeech related; code determines what cops will call your car
## PATCH LENGTH ADDRESS, NOT DATA
patch	int32	bin:0x2f200	0x00000080

## MASS; self-explanatory; mass of car expressed in kilograms
patch	float	bin:0x2f1f8	1200

## TENSOR_SCALE; seems to be overall handling speed scale balancing
## the bigger 2nd value is the slower the car will respond to steering input
## countered by increasing of 1st and 3rd value
patch	float	bin:0x2f1c0	1
patch	float	bin:0x2f1c4	2
patch	float	bin:0x2f1c8	1
patch	float	bin:0x2f1cc	0

## HandlingRating; used to set min and max handling bars length; doesn't take effect from base or end grip values but its increase is dependent
## on chassis and tires values
## values range from 37-98 for 1st set and 90-100 for 2nd set
patch	float	bin:0x2f238	85
patch	float	bin:0x2f23c	98


##---------------------------------------------------
## Node: ecar/default/racers/slr
##---------------------------------------------------

## BodyDive; maximum vector-based movement of front of car body
1st - Degrees/G
2nd - Max G
3rd - Degrees/sec
patch	float	bin:0x3f9d8	0
patch	float	bin:0x3f9dc	1
patch	float	bin:0x3f9e0	8

## RideHeight; in-race only; visible body height
patch	float	bin:0x3fa1c	1.8

## TireOffsets
## in format x, y, z, w
## x axis; car front = +; car rear = -
## y axis; left side = +; right = -
## z axis; up = +; down = - note: will move WHEELS [up or down] regarding CAR BODY, during race body will be on normal level
## unlike wheels that might be BELOW ground
## w - wheel diameter scaling; default game values range between 0.31 [elise] and 0.35 [mustanggt]
## NOTE: CAR BODY height will be changed to match wheel size
## all axles have point 0 in center of line between front left and rear right wheel or between front right and rear left

## front left
patch	float	bin:0x3f930	1.3140
patch	float	bin:0x3f934	0.968
patch	float	bin:0x3f938	0
patch	float	bin:0x3f93c	0.34

## front right
patch	float	bin:0x3f940	1.3140
patch	float	bin:0x3f944	-0.968
patch	float	bin:0x3f948	0
patch	float	bin:0x3f94c	0.34

## rear right
patch	float	bin:0x3f950	-1.3167
patch	float	bin:0x3f954	-0.988
patch	float	bin:0x3f958	0
patch	float	bin:0x3f95c	0.345

## rear left
patch	float	bin:0x3f960	-1.3167
patch	float	bin:0x3f964	0.988
patch	float	bin:0x3f968	0
patch	float	bin:0x3f96c	0.345

## BodySquat; maximum vector-based movement of rear of car body
1st - Degrees/G
2nd - Max G
3rd - Degrees/sec
patch	float	bin:0x3f9cc	0
patch	float	bin:0x3f9d0	1
patch	float	bin:0x3f9d4	8

## CamberRear; angle between the vertical axis of the wheel and the vertical axis of the vehicle
## positive values for bottom of wheel being further out than top, negative for opposite effect
## common value is 0.18
patch	float	bin:0x3fa18	0.22

## CamberFront; angle between the vertical axis of the wheel and the vertical axis of the vehicle
## positive values for bottom of wheel being further out than top, negative for opposite effect
## common value is 0.22
patch	float	bin:0x3fa10	0.23

## FECompressions; used to adjust height of car body regarding wheels in frontend menus
## common value range is 2x0.10-2x0.20
patch	float	bin:0x3fa48	0.15
patch	float	bin:0x3fa4c	0.15

## TireSkidWidth; aka tire width
## common value range is 2x0.225 for front wheels and 2x0.335 for rear wheels
patch	float	bin:0x3f9fc	0.265
patch	float	bin:0x3fa00	0.265
patch	float	bin:0x3fa04	0.305
patch	float	bin:0x3fa08	0.305

## WheelSpokeCount; number of spokes in rims
## common value range N/A since it differs per car
patch	int8	bin:0x3fa3c	8

## reflection
patch 	float 	bin:0x3fa14    	0.08

## KitWheelOffsetRear; used to move wheels along axis Y when bodykits are used
## values range from 0 to 128; applies to REAR axle
patch	int8	bin:0x3fa28	0
patch	int8	bin:0x3fa29	0
patch	int8	bin:0x3fa2a	0
patch	int8	bin:0x3fa2b	0
patch	int8	bin:0x3fa2c	0
patch	int8	bin:0x3fa2d	0

## BodyRoll; maximum vector-based movement of entire car body towards left or right
## simply put - car body leaning sideways
1st - Degrees/G
2nd - Max G
3rd - Degrees/sec
patch	float	bin:0x3f9c0	1.25
patch	float	bin:0x3f9c4	1
patch	float	bin:0x3f9c8	0.2

## KitWheelOffsetFront; used to move wheels along axis Y when bodykits are used
## values range from 0 to 128; applies to FRONT axle
patch	int8	bin:0x3fa36	0
patch	int8	bin:0x3fa37	0
patch	int8	bin:0x3fa38	0
patch	int8	bin:0x3fa39	0
patch	int8	bin:0x3fa3a	0
patch	int8	bin:0x3fa3b	0


##---------------------------------------------------
## Node: brakes/default/slr
##---------------------------------------------------

## BRAKES; overall braking power per axle
## common value range is 300/400-650/700; mass dependent
patch	float	bin:0x24448	265
patch	float	bin:0x2444c	290

## EBRAKE; handbrake power; should be larger than BRAKES value by at least 10% and larger than overall car horsepower
## common value range is 400-800; mass dependent
patch	float	bin:0x24450	240

## BRAKE_LOCK; BRAKES field values multiplier and braking force distribution ratio
## common value range is 1.00 for front axle and 3.20-3.60 for rear axle
patch	float	bin:0x24440	0.25
patch	float	bin:0x24444	1.1


##---------------------------------------------------
## Node: brakes/default/slr/slr_top
##---------------------------------------------------

## BRAKES
patch	float	bin:0x2486c	490
patch	float	bin:0x24870	510

## EBRAKE
patch	float	bin:0x24874	475

## BRAKE_LOCK
patch	float	bin:0x24864	0.75
patch	float	bin:0x24868	1


##---------------------------------------------------
## Node: chassis/default/slr
##---------------------------------------------------

## WHEEL_BASE; distance between the centers of the front and rear wheels
## common value range N/A since it differs per car
patch	float	bin:0x97b8	2.79

## DRAG_COEFFICIENT; air resistance of object travelling in a non-vacuum environment such as air
## common value range is 0.25-0.42
patch	float	bin:0x97d4	0.38

## SHOCK_VALVING; shock absorber oil flow restriction
## common value range is 2x15-2x24
patch	float	bin:0x97a4	16
patch	float	bin:0x97a8	16

## RIDE_HEIGHT; aka ground clearance
## common value range is 2x6-2x9
patch	float	bin:0x977c	7
patch	float	bin:0x9780	7

## SHOCK_STIFFNESS; minimum pressure inside shock absorber in pounds per square inch
## common value range is 2x30-2x80; acceleration and mass-dependent
patch	float	bin:0x9794	50
patch	float	bin:0x9798	50

## SHOCK_BLOWOUT; maximum size by which a dampener can compress in inches; stock same as upgraded
## common value range is 5-8
patch	float	bin:0x97bc	6

## SHOCK_EXT_STIFFNESS; maximum shock absorber rebound force
## common value range is 2x40-2x80; acceleration-, downforce- and mass-dependent
patch	float	bin:0x978c	55
patch	float	bin:0x9790	55

## SWAYBAR_STIFFNESS; self-explanatory; probably expressed in pounds per square inch
## common value range is 2x200-2x450; acceleration and mass dependent
patch	float	bin:0x97ac	275
patch	float	bin:0x97b0	275

## ROLL_CENTER; vertical center of gravity [probably in inches]
## common value range is 8-10
patch	float	bin:0x97b4	8.65

## TRAVEL; maximum length by which a shock can be extended if car wheels don't have contact with road surface; stock commonly higher than upgraded
## common value range is 2x6-2x8; acceleration and mass dependent
patch	float	bin:0x9774	7.8
patch	float	bin:0x9778	8

## SPRING_STIFFNESS; overall coilover pressure in pounds square inch
## common value range is 2x400-2x700
patch	float	bin:0x979c	450
patch	float	bin:0x97a0	450

## AERO_CG; overall distribution of aerodynamic force on the car body; values between 0 and 100; 0 for max in rear, 100 for max in front
## common value range is 47-51
patch	float	bin:0x97c0	47

## SPRING_PROGRESSION; maximum compression speed/rate for spring to achieve maximum stiffness; stock smaller than upgraded
## higher values will make springs stiffer faster so car won't shove ground on slopes but will also increase bouncing on curbs
## common value range is 2x5-2x8
patch	float	bin:0x976c	6.75
patch	float	bin:0x9770	6.75

## TRACK_WIDTH; axle length; distance between wheels on a single axle; measured in metres
## common value range N/A since it differs per car
patch	float	bin:0x9784	1.644
patch	float	bin:0x9788	1.692

## SHOCK_DIGRESSION; digressive shocks provide smoother ride at higher speeds and absorb body roll also improving cornering; smaller value for smoother ride
## common value range is 2x0.1-2x0.5
patch	float	bin:0x9764	0.25
patch	float	bin:0x9768	0.25

## RENDER_MOTION; dependent on ecar node settings in body roll, dive and squat; used as a multiplier of the mentioned values to calculate car body movement
## common value range is 0.50-1.00
patch	float	bin:0x97c4	1

## AERO_COEFFICIENT; used to define car aerodynamics factor and overall downforce; value too small will make it slow and too high will push it down to
## ground too hard making it difficult to drive and car will be constantly hitting road due to excessive amount of downforce
## common value range is 0.15-0.30
patch	float	bin:0x97cc	0.248

## FRONT_AXLE; front axle diameter in inches
## common value range is 1.2-1.5
patch	float	bin:0x97c8	1.28

## FRONT_WEIGHT_BIAS; overall mass distribution; values from 0 to 100; 0 for max rear bias; 100 for max front bias
## common value range is 51-55
patch	float	bin:0x97d0	52


##---------------------------------------------------
## Node: chassis/default/slr/slr_top
##---------------------------------------------------

## WHEEL_BASE
patch	float	bin:0x9d28	2.79

## DRAG_COEFFICIENT
patch	float	bin:0x9d44	0.442

## SHOCK_VALVING
patch	float	bin:0x9d14	20
patch	float	bin:0x9d18	20

## RIDE_HEIGHT
patch	float	bin:0x9cec	7
patch	float	bin:0x9cf0	7

## SHOCK_STIFFNESS
patch	float	bin:0x9d04	60
patch	float	bin:0x9d08	60

## SHOCK_BLOWOUT
patch	float	bin:0x9d2c	6

## SHOCK_EXT_STIFFNESS
patch	float	bin:0x9cfc	65
patch	float	bin:0x9d00	65

## SWAYBAR_STIFFNESS
patch	float	bin:0x9d1c	315
patch	float	bin:0x9d20	315

## ROLL_CENTER
patch	float	bin:0x9d24	8

## TRAVEL
patch	float	bin:0x9ce4	6
patch	float	bin:0x9ce8	6.2

## SPRING_STIFFNESS
patch	float	bin:0x9d0c	550
patch	float	bin:0x9d10	550

## AERO_CG
patch	float	bin:0x9d30	49

## SPRING_PROGRESSION
patch	float	bin:0x9cdc	7.75
patch	float	bin:0x9ce0	7.75

## TRACK_WIDTH
patch	float	bin:0x9cf4	1.644
patch	float	bin:0x9cf8	1.692

## SHOCK_DIGRESSION
patch	float	bin:0x9cd4	0.12
patch	float	bin:0x9cd8	0.12

## RENDER_MOTION
patch	float	bin:0x9d34	0.5

## AERO_COEFFICIENT
patch	float	bin:0x9d3c	0.28

## FRONT_AXLE
patch	float	bin:0x9d38	1.28

## FRONT_WEIGHT_BIAS
patch	float	bin:0x9d40	52


##---------------------------------------------------
## Node: engine/default/slr
##---------------------------------------------------

## ENGINE_BRAKING; multiplies maximum torque at current gear and uses it to calculate speed loss with no throttle used
## common value range is 0.70-0.90
patch	float	bin:0x13914	0.77
patch	float	bin:0x13918	0.84
patch	float	bin:0x1391c	0.88

## IDLE; minimum operating speed of engine necessary to sustain its work but not enough to move drivetrain components
## common value range is 800-950
patch	float	bin:0x1392c	950

## TORQUE; self-explanatory; field count suggest game used to support up to 15 torque values; can only use 9 now
## common value range N/A since it differs per car
patch	float	bin:0x138d8	90
patch	float	bin:0x138dc	130
patch	float	bin:0x138e0	194
patch	float	bin:0x138e4	286
patch	float	bin:0x138e8	317
patch	float	bin:0x138ec	307
patch	float	bin:0x138f0	289
patch	float	bin:0x138f4	260
patch	float	bin:0x138f8	218

## MAX_RPM; maximum operating speed of engine before its destruction [drag racing only]
## common value range N/A since it differs per car
patch	float	bin:0x13924	9250

## FLYWHEEL_MASS; the higher the mass, the higher the maximum inertia moment and therefore larger amounts of kinetic energy can be stored
## also the lower the mass, the faster the top speed can be achieved and maintained
## common value range is 9-15
patch	float	bin:0x13920	12

## RED_LINE; maximum safe operating speed of engine
## common value range N/A since it differs per car
patch	float	bin:0x13928	8000


##---------------------------------------------------
## Node: engine/default/slr/slr_top
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x13d34	0.7
patch	float	bin:0x13d38	0.87
patch	float	bin:0x13d3c	0.9

## IDLE
patch	float	bin:0x13d4c	950

## TORQUE
patch	float	bin:0x13cf8	136
patch	float	bin:0x13cfc	189
patch	float	bin:0x13d00	302
patch	float	bin:0x13d04	442
patch	float	bin:0x13d08	504
patch	float	bin:0x13d0c	439
patch	float	bin:0x13d10	398
patch	float	bin:0x13d14	378
patch	float	bin:0x13d18	361

## MAX_RPM
patch	float	bin:0x13d44	9250

## FLYWHEEL_MASS
patch	float	bin:0x13d40	12

## RED_LINE
patch	float	bin:0x13d48	8000


##---------------------------------------------------
## Node: induction/default/slr
##---------------------------------------------------

## AIR_PRESSURE*; commonly 0.25
patch	float	bin:0x11d20	0.25

## HIGH_BOOST
patch	float	bin:0x11d34	0.1

## LOW_BOOST
patch	float	bin:0x11d1c	0.1

## PSI_ARROW_MOVE_SPEED*; always higher value for stock
patch	float	bin:0x11d2c	1.5

## PSI; maximum pressure of air taken into the turbine
## common value range is 12-15
patch	float	bin:0x11d30	12

## SPOOL; turbine lag; 0 for 'supercharger'; anything higher will give 'turbo' upgrade
## common value range is 0.00-0.20
patch	float	bin:0x11d28	0.12

## BOOST_VARIANCE*; pressure drop/rise in chamber
patch	float	bin:0x11d24	-0.1


##---------------------------------------------------
## Node: induction/default/slr/slr_top
##---------------------------------------------------

## AIR_PRESSURE*; commonly 0.25
patch	float	bin:0x122b4	0.25

## HIGH_BOOST
patch	float	bin:0x122c8	0.275

## LOW_BOOST
patch	float	bin:0x122b0	0.2

## PSI_ARROW_MOVE_SPEED*; always higher value for stock
patch	float	bin:0x122c0	1.5

## PSI; maximum pressure of air taken into the turbine
## common value range is 12-15
patch	float	bin:0x122c4	24

## SPOOL; turbine lag; 0 for 'supercharger'; anything higher will give 'turbo' upgrade
## common value range is 0.00-0.20
patch	float	bin:0x122bc	0.1

## BOOST_VARIANCE*; pressure drop/rise in chamber
patch	float	bin:0x122b8	-0.085


##---------------------------------------------------
## Node: tires/default/slr
##---------------------------------------------------

## SECTION_WIDTH; self-explanatory; measured in milimetres
## common value range N/A since it differs per car
patch	float	bin:0x22cd0	265
patch	float	bin:0x22cd4	325

## YAW_CONTROL; equivalent of section-based traction and stability control system; values 1 and 2 for front; values 3 and 4 for rear
## effect similar to dynamic mass bias shifting; highly dependent on WEIGHT_BIAS, AERO_CG, TORQUE_SPLIT and DYNAMIC/STATIC_GRIP values
## common value range N/A since it differs per car; mass and acceleration dependent
patch	float	bin:0x22c98	0.5
patch	float	bin:0x22c9c	0.5
patch	float	bin:0x22ca0	0.15
patch	float	bin:0x22ca4	0.15

## DYNAMIC_GRIP; amount of friction the tires produce when traction is broken, ie when the car is sliding or in a burnout
## common value range N/A since it differs per car; mass and acceleration dependent
patch	float	bin:0x22cb0	1.65
patch	float	bin:0x22cb4	1.67

## RIM_SIZE; self-explanatory; measured in inches
## common value range is 2x16-2x19
patch	float	bin:0x22cc0	19
patch	float	bin:0x22cc4	19

## YAW_SPEED; self-explanatory; rate at which car enters yaw state
## common value range is 0.30-0.70
patch	float	bin:0x22cdc	0.3

## ASPECT_RATIO; self-explanatory; ratio of section height to section width
## common value range is 2x30-2x55
patch	float	bin:0x22cb8	30
patch	float	bin:0x22cbc	30

## STATIC_GRIP; static grip is the amount of friction the tires are able to produce when they are not spinning, though they can be rolling
## common value range N/A since it differs per car; mass and acceleration dependent
patch	float	bin:0x22cc8	1.80
patch	float	bin:0x22ccc	1.78

## GRIP_SCALE; tire grip scaling per axle
## common value range is 2x1.00-2x1.10
patch	float	bin:0x22ca8	1
patch	float	bin:0x22cac	1

## STEERING; steering ratio; value of 1.00 means that turning steering wheel by 360 degrees will turn wheels by 36 degrees
## common value range is 0.90-1.10
patch	float	bin:0x22cd8	1.02


##---------------------------------------------------
## Node: tires/default/slr/slr_top
##---------------------------------------------------

## SECTION_WIDTH
patch	float	bin:0x23860	265
patch	float	bin:0x23864	325

## YAW_CONTROL
patch	float	bin:0x23828	0.6
patch	float	bin:0x2382c	0.6
patch	float	bin:0x23830	0.375
patch	float	bin:0x23834	0.375

## DYNAMIC_GRIP
patch	float	bin:0x23840	1.84
patch	float	bin:0x23844	1.87

## RIM_SIZE
patch	float	bin:0x23850	19
patch	float	bin:0x23854	19

## YAW_SPEED
patch	float	bin:0x2386c	0.31

## ASPECT_RATIO
patch	float	bin:0x23848	30
patch	float	bin:0x2384c	30

## STATIC_GRIP
patch	float	bin:0x23858	1.97
patch	float	bin:0x2385c	2

## GRIP_SCALE
patch	float	bin:0x23838	1.025
patch	float	bin:0x2383c	1.075

## STEERING
patch	float	bin:0x23868	0.95


##---------------------------------------------------
## Node: transmission/default/slr
##---------------------------------------------------

## GEAR_COUNT; 1st GEAR_RATIO offset -6; total amount of gears including reverse, neutral and forward gears
## maximum number of elements is 11 but only 10 are proven to cause no problems with car drivability
## common value range is 7-9
patch	int16	bin:0x1ea46	8

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1ea4c	3.3
patch	float	bin:0x1ea50	0
patch	float	bin:0x1ea54	3.65
patch	float	bin:0x1ea58	2.24
patch	float	bin:0x1ea5c	1.6
patch	float	bin:0x1ea60	1.22
patch	float	bin:0x1ea64	0.96
patch	float	bin:0x1ea68	0.78

## DIFFERENTIAL; self-explanatory; differential bias; 0.00 for rear, 0.50 for mid and 1.00 for front
## setting towards front will lock the front wheels more, causing the car to be prone to oversteer; inverse effect if bias set towards rear
## common value range is 2x0.60-2x0.80; 3x0.60-3x0.80 if car is AWD
patch	float	bin:0x1ea78	0.825
patch	float	bin:0x1ea7c	0.825
patch	float	bin:0x1ea80	0

## GEAR_EFFICIENCY; overall power multiplier on current gear and rpm used to quickly change speed at each gear without any major reconfigurations
## common value set is 9x1.00
patch	float	bin:0x1ea8c	0.75
patch	float	bin:0x1ea90	1
patch	float	bin:0x1ea94	1
patch	float	bin:0x1ea98	1
patch	float	bin:0x1ea9c	1
patch	float	bin:0x1eaa0	1
patch	float	bin:0x1eaa4	1
patch	float	bin:0x1eaa8	1

## TORQUE_CONVERTER; percentage ratio of torque converter efficiency with automatic transmission usage
## common value range is 0.20-0.80
patch	float	bin:0x1eab0	0.65

## TORQUE_SPLIT; torque-to-axle transfer ratio; 0 for RWD, 0.5 for AWD and 1 for FWD
## common value range N/A since it differs per car
patch	float	bin:0x1eab4	0

## CLUTCH_SLIP; self-explanatory; manual gearbox efficiency ratio
## common value range is 0.70-0.90
patch	float	bin:0x1eab8	0.75

## SHIFT_SPEED; shifting interval; stock [should be] higher than upgraded
## common value range is 0.10-0.25
patch	float	bin:0x1eac0	0.275

## FINAL_GEAR; final gear ratio determining top speed
## common value range N/A since it differs per car
patch	float	bin:0x1eac4	4


##---------------------------------------------------
## Node: transmission/default/slr/slr_top
##---------------------------------------------------

## GEAR_COUNT; 1st GEAR_RATIO offset -6
patch	int16	bin:0x2040e	8

## GEAR_RATIO
patch	float	bin:0x20414	3.5
patch	float	bin:0x20418	0
patch	float	bin:0x2041c	3.65
patch	float	bin:0x20420	2.28
patch	float	bin:0x20424	1.6
patch	float	bin:0x20428	1.19
patch	float	bin:0x2042c	0.957
patch	float	bin:0x20430	0.791

## DIFFERENTIAL
patch	float	bin:0x20440	0.8
patch	float	bin:0x20444	0.8
patch	float	bin:0x20448	0

## GEAR_EFFICIENCY
patch	float	bin:0x20454	0.75
patch	float	bin:0x20458	1
patch	float	bin:0x2045c	1
patch	float	bin:0x20460	1
patch	float	bin:0x20464	1
patch	float	bin:0x20468	1
patch	float	bin:0x2046c	1
patch	float	bin:0x20470	1

## TORQUE_CONVERTER
patch	float	bin:0x20478	0.6

## TORQUE_SPLIT
patch	float	bin:0x2047c	0

## CLUTCH_SLIP
patch	float	bin:0x20480	0.8

## SHIFT_SPEED
patch	float	bin:0x20488	0.2

## FINAL_GEAR##3.215
patch	float	bin:0x2048c	3.4


##----------------------------------------------------
## Node: light_flares_cg/0xa95ab5ad; headlights setup
##----------------------------------------------------

## type
patch	float	bin:0x1842c	0

## 0xf7649e63; Size
patch	float	bin:0x18434	40

## Power
patch	float	bin:0x18428	0.1

## ZBias
patch	float	bin:0x18438	1.0

##----------------------------------------------------
## Node: light_flares_cg/reverselight_inner
##----------------------------------------------------

## Power
patch	float	bin:0x18728	0.1

## ZBias
patch	float	bin:0x18738	1.0


##----------------------------------------------------
## Node: emitterdata/default/emcar_nos_fire
##----------------------------------------------------

## Gravity
patch	float	bin:0x44758	0.5

MD5 hash: 4372656174656420627920464F58

